Discussion:
[opennms-discuss] snmp asset adapter
Michael Downes
2012-05-22 08:01:16 UTC
Permalink
I have OpenNMS version 1.10.2

I am trying to use the snmp-asset-adapter

I provisioned a Windows 2008 Server with an IP interface and SNMP
Service and SNMP Primary set to P

I have a long list of nodes also that were captured using capsd

I cannot update details in the asset info page of the provisioned
node. I use the XML details below.

I did an snmpwalk of this OID and it returns the Server Model HP
DL580. The OID represents the HP management agent location of the
Server Model. I change the XML file to query RAM instead and update
the RAM field and that doesn't work either. I am out of ideas as to
why I cannot get the adapter to place the resulting string in the
right Asset Info field. The provisiond.log shows that the adapter is
being called.

Any ideas.


<?xml version="1.0" encoding="UTF-8"?>
<snmp-asset-adapter-configuration>
<package name="PJs">
<sysoid>.1.3</sysoid>
<assetField name="modelNumber" formatString="${Model}">
<mibObjs>
<mibObj oid=".1.3.6.1.4.1.232.2.2.4.2" alias="Model"/>
</mibObjs>
</assetField>
</package>
</snmp-asset-adapter-configuration>
Alejandro Galue
2012-05-22 13:44:32 UTC
Permalink
Hello Michael,
Post by Michael Downes
<package name="PJs">
<sysoid>.1.3</sysoid>
Is the above sysoid correct for your HP server ?

Check your database or the output of an snmpwalk for .1.3.6.1.2.1.1.2.0 (SNMPv2-MIB::sysObjectID.0)

Alejandro
Tomas Heredia
2012-05-22 15:10:58 UTC
Permalink
Hi all!

Does anybody have a working |snmp-asset-adapter-configuration.xml for
Cisco devices? Also interested in Windows (windows snmp), Fortinet and
others.

Thanks!!!

|
Fred Ebben
2013-06-26 06:32:24 UTC
Permalink
Hi,

Dit you already have some working smp-asset-adapter.configuration.xml
entries/files for Cisco / HP / Windows / other devices?

I'm now trying to do one for HP servers.

Fred



--
View this message in context: http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p7583734.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
David S Hustace
2013-07-04 18:51:39 UTC
Permalink
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?


-David
Fred Ebben
2013-07-05 07:02:49 UTC
Permalink
Also added:

http://www.opennms.org/wiki/SNMP_Asset_Provisioning_Adapter#Cisco_Hardwa
re_Inventory



For HP Proliant Servers Not all field are working, this will be updated.
Working fields in this config: Model Number, Serial Number, Asset
Numer=Hostname. The asset fields are filled for servers within
'Provisioning Requisitions'. Works not with auto discovered devices.







In the log /var/log/opennms/daemon/provisiond

Provisiond (I'm still testing with more fields)





2013-07-05 08:50:05,186 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.4.2.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [ProLiant DL360 G5]

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Model => ProLiant DL360 G5



2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"modelNumber" to value: ProLiant DL360 G5

2013-07-05 08:50:05,191 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.2.5.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [CZJ7250]

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Serial => CZJ7250



2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"serialNumber" to value: CZJ72506XM

2013-07-05 08:50:05,194 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.2.1.1.6.0] for Agent:AgentConfig[Address: 192.168.51.41,
ProxyForAddress: null, Port: 161, Community: snmpstring, Timeout$

2013-07-05 08:50:05,201 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Almere]

2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Location => Almere



2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field "division"
to value: Almere

2013-07-05 08:50:05,203 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, x64 Enterprise Edition Service Pack 1]

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

DataInstalled => Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1



2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"dateInstalled" to value: Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1

2013-07-05 08:50:05,209 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, Standard Edition, Service Pack 1]

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

OperationSystem => Windows Server 2008 R2, x64 Standard Edition
Service Pack 1



How can I trigger a refresh of the snmp asset adapter. Now I restart
OpenNMS, change/delete some asset fields and the rescan and wait for 5
minutes.

An 'Asset Info' rescan button would be nice.



Kind regards,

Fred









Van: David S Hustace [via OpenNMS]
[mailto:ml-node+***@n2.nabble.com]
Verzonden: donderdag 4 juli 2013 20:56
Aan: Fred Ebben
Onderwerp: Re: snmp asset adapter
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?



-David
------------------------------------------------------------------------
------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of
this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss



________________________________

If you reply to this email, your message will be added to the discussion
below:

http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p7583819
.html

To unsubscribe from snmp asset adapter, click here
<http://opennms.530661.n2.nabble.com/template/NamlServlet.jtp?macro=unsu
bscribe_by_code&node=7571447&code=ZmViYmVuQG1hc3N4ZXNzLm5sfDc1NzE0NDd8MT
g2MDUzMTMwNQ==> .
NAML
<http://opennms.530661.n2.nabble.com/template/NamlServlet.jtp?macro=macr
o_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespac
es.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.n
amespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble
.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace
-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNa
mespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.N
abbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.tem
plate.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.
web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&brea
dcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble
%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>



image002.png (18K) <Loading Image...>




--
View this message in context: http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p7583824.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
Fred Ebben
2013-07-05 07:23:18 UTC
Permalink
For HP Proliant Servers Not all field are working, this will be updated.
Working fields in this config: Model Number, Serial Number, Asset
Numer=Hostname. The asset fields are filled for servers within
'Provisioning Requisitions'. Works not with auto discovered devices.







In the log /var/log/opennms/daemon/provisiond

Provisiond (I'm still testing with more fields)





2013-07-05 08:50:05,186 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.4.2.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [ProLiant DL360 G5]

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Model => ProLiant DL360 G5



2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"modelNumber" to value: ProLiant DL360 G5

2013-07-05 08:50:05,191 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.2.5.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [CZJ7250]

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Serial => CZJ7250



2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"serialNumber" to value: CZJ72506XM

2013-07-05 08:50:05,194 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.2.1.1.6.0] for Agent:AgentConfig[Address: 192.168.51.41,
ProxyForAddress: null, Port: 161, Community: snmpstring, Timeout$

2013-07-05 08:50:05,201 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Almere]

2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Location => Almere



2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field "division"
to value: Almere

2013-07-05 08:50:05,203 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, x64 Enterprise Edition Service Pack 1]

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

DataInstalled => Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1



2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"dateInstalled" to value: Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1

2013-07-05 08:50:05,209 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, Standard Edition, Service Pack 1]

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

OperationSystem => Windows Server 2008 R2, x64 Standard Edition
Service Pack 1



How can I trigger a refresh of the snmp asset adapter. Now I restart
OpenNMS, change/delete some asset fields and the rescan and wait for 5
minutes.

An 'Asset Info' rescan button would be nice.



Kind regards,

Fred









Van: David S Hustace [via OpenNMS] [
mailto:ml-node+***@n2.nabble.com]
Verzonden: donderdag 4 juli 2013 20:56
Aan: Fred Ebben
Onderwerp: Re: snmp asset adapter
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?



David





image001.jpg (13K) <Loading Image...>




--
View this message in context: http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p7583825.html
Sent from the OpenNMS - discuss mailing list archive at Nabble.com.
Fred Ebben
2013-07-05 09:07:11 UTC
Permalink
What is the SNMP oid of the install date of a Windows and Linux machine?













Van: Fred Ebben [mailto:***@massxess.nl]
Verzonden: vrijdag 5 juli 2013 09:23
Aan: opennms-***@lists.sourceforge.net
Onderwerp: Re: [opennms-discuss] snmp asset adapter



For HP Proliant Servers Not all field are working, this will be updated.
Working fields in this config: Model Number, Serial Number, Asset
Numer=Hostname. The asset fields are filled for servers within
'Provisioning Requisitions'. Works not with auto discovered devices.



<http://opennms.530661.n2.nabble.com/attachment/7583825/0/image001.jpg>




In the log /var/log/opennms/daemon/provisiond

Provisiond (I'm still testing with more fields)





2013-07-05 08:50:05,186 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.4.2.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [ProLiant DL360 G5]

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Model => ProLiant DL360 G5



2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"modelNumber" to value: ProLiant DL360 G5

2013-07-05 08:50:05,191 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.2.5.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [CZJ7250]

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Serial => CZJ7250



2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"serialNumber" to value: CZJ72506XM

2013-07-05 08:50:05,194 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.2.1.1.6.0] for Agent:AgentConfig[Address: 192.168.51.41,
ProxyForAddress: null, Port: 161, Community: snmpstring, Timeout$

2013-07-05 08:50:05,201 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Almere]

2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Location => Almere



2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field "division"
to value: Almere

2013-07-05 08:50:05,203 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, x64 Enterprise Edition Service Pack 1]

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

DataInstalled => Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1



2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"dateInstalled" to value: Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1

2013-07-05 08:50:05,209 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, Standard Edition, Service Pack 1]

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

OperationSystem => Windows Server 2008 R2, x64 Standard Edition
Service Pack 1



How can I trigger a refresh of the snmp asset adapter. Now I restart
OpenNMS, change/delete some asset fields and the rescan and wait for 5
minutes.

An 'Asset Info' rescan button would be nice.



Kind regards,

Fred









Van: David S Hustace [via OpenNMS] [[hidden email]]
Verzonden: donderdag 4 juli 2013 20:56
Aan: Fred Ebben
Onderwerp: Re: snmp asset adapter
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?



David



________________________________

View this message in context: RE: snmp asset adapter
<http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p758382
5.html>
Sent from the OpenNMS - discuss mailing list archive
<http://opennms.530661.n2.nabble.com/OpenNMS-discuss-f529575.html> at
Nabble.com.
Fred Ebben
2013-07-05 09:19:58 UTC
Permalink
http://demo.ocsinventory-ng.org/# <http://demo.ocsinventory-ng.org/#>
a demo of a SNMP inventory software.

There's als a field 'Notes'. Is this somewhere to set on Windows/Linux
machines for de SNMP Asset field Comments?







I use BGinfo on Windows servers. The 'server description' is a textfile.
Maybe I can put this information in notes 'SNMP field' so it will be
visible in Comments snmp-asset field .







Van: Fred Ebben [mailto:***@massxess.nl]
Verzonden: vrijdag 5 juli 2013 09:23
Aan: opennms-***@lists.sourceforge.net
Onderwerp: Re: [opennms-discuss] snmp asset adapter



For HP Proliant Servers Not all field are working, this will be updated.
Working fields in this config: Model Number, Serial Number, Asset
Numer=Hostname. The asset fields are filled for servers within
'Provisioning Requisitions'. Works not with auto discovered devices.



<http://opennms.530661.n2.nabble.com/attachment/7583825/0/image001.jpg>




In the log /var/log/opennms/daemon/provisiond

Provisiond (I'm still testing with more fields)





2013-07-05 08:50:05,186 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.4.2.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [ProLiant DL360 G5]

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Model => ProLiant DL360 G5



2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"modelNumber" to value: ProLiant DL360 G5

2013-07-05 08:50:05,191 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.2.5.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [CZJ7250]

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Serial => CZJ7250



2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"serialNumber" to value: CZJ72506XM

2013-07-05 08:50:05,194 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.2.1.1.6.0] for Agent:AgentConfig[Address: 192.168.51.41,
ProxyForAddress: null, Port: 161, Community: snmpstring, Timeout$

2013-07-05 08:50:05,201 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Almere]

2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Location => Almere



2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field "division"
to value: Almere

2013-07-05 08:50:05,203 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, x64 Enterprise Edition Service Pack 1]

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

DataInstalled => Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1



2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"dateInstalled" to value: Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1

2013-07-05 08:50:05,209 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, Standard Edition, Service Pack 1]

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

OperationSystem => Windows Server 2008 R2, x64 Standard Edition
Service Pack 1



How can I trigger a refresh of the snmp asset adapter. Now I restart
OpenNMS, change/delete some asset fields and the rescan and wait for 5
minutes.

An 'Asset Info' rescan button would be nice.



Kind regards,

Fred









Van: David S Hustace [via OpenNMS] [[hidden email]]
Verzonden: donderdag 4 juli 2013 20:56
Aan: Fred Ebben
Onderwerp: Re: snmp asset adapter
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?



David



________________________________

View this message in context: RE: snmp asset adapter
<http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p758382
5.html>
Sent from the OpenNMS - discuss mailing list archive
<http://opennms.530661.n2.nabble.com/OpenNMS-discuss-f529575.html> at
Nabble.com.
Fred Ebben
2013-07-11 09:32:31 UTC
Permalink
Made a powershell script for filling some asset fields.





# Installdate of Windows

$wmi = Get-WmiObject -Class Win32_OperatingSystem

$dateInstalled = $wmi.ConvertToDateTime($wmi.InstallDate)



# Serialnumber and manufacturer of server

Get-WmiObject win32_bios | select SerialNumber

$wmi = Get-WmiObject -Class win32_bios

$manufacturer = $wmi.Manufacturer



# Text file with a description of the server for the comments field

$comment = Get-Content "C:\Program Files\BGInfo\Info_Description.txt" |
Out-String



$uri="http://opennms.domain.nl:8980/opennms/rest/nodes/646/assetRecord"



$user ="admin"

$pass= "admin"



$secpasswd = ConvertTo-SecureString $user -AsPlainText -Force

$cred = New-Object System.Management.Automation.PSCredential ($pass,
$secpasswd)



Invoke-RestMethod -Uri
"http://opennms.massxess.nl:8980/opennms/rest/nodes/646/assetRecord/?bui
lding=133" -Credential $cred -Method PUT

Invoke-RestMethod -Uri "$uri/?manufacturer=$manufacturer" -Credential
$cred -Method PUT

Invoke-RestMethod -Uri "$uri/?dateInstalled=$dateInstalled" -Credential
$cred -Method PUT

Invoke-RestMethod -Uri "$uri/?comment=$comment" -Credential $cred
-Method PUT



Fred







Van: Fred Ebben [mailto:***@massxess.nl]
Verzonden: vrijdag 5 juli 2013 11:20
Aan: General OpenNMS Discussion
Onderwerp: Re: [opennms-discuss] snmp asset adapter



http://demo.ocsinventory-ng.org/# <http://demo.ocsinventory-ng.org/> a
demo of a SNMP inventory software.

There's als a field 'Notes'. Is this somewhere to set on Windows/Linux
machines for de SNMP Asset field Comments?







I use BGinfo on Windows servers. The 'server description' is a textfile.
Maybe I can put this information in notes 'SNMP field' so it will be
visible in Comments snmp-asset field .







Van: Fred Ebben [mailto:***@massxess.nl]
Verzonden: vrijdag 5 juli 2013 09:23
Aan: opennms-***@lists.sourceforge.net
Onderwerp: Re: [opennms-discuss] snmp asset adapter



For HP Proliant Servers Not all field are working, this will be updated.
Working fields in this config: Model Number, Serial Number, Asset
Numer=Hostname. The asset fields are filled for servers within
'Provisioning Requisitions'. Works not with auto discovered devices.



<http://opennms.530661.n2.nabble.com/attachment/7583825/0/image001.jpg>




In the log /var/log/opennms/daemon/provisiond

Provisiond (I'm still testing with more fields)





2013-07-05 08:50:05,186 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.4.2.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [ProLiant DL360 G5]

2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Model => ProLiant DL360 G5



2013-07-05 08:50:05,189 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"modelNumber" to value: ProLiant DL360 G5

2013-07-05 08:50:05,191 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.2.2.2.5.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring,$

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [CZJ7250]

2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Serial => CZJ7250



2013-07-05 08:50:05,193 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"serialNumber" to value: CZJ72506XM

2013-07-05 08:50:05,194 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.2.1.1.6.0] for Agent:AgentConfig[Address: 192.168.51.41,
ProxyForAddress: null, Port: 161, Community: snmpstring, Timeout$

2013-07-05 08:50:05,201 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Almere]

2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

Location => Almere



2013-07-05 08:50:05,202 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field "division"
to value: Almere

2013-07-05 08:50:05,203 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, x64 Enterprise Edition Service Pack 1]

2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

DataInstalled => Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1



2013-07-05 08:50:05,208 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: doUpdate: Setting asset field
"dateInstalled" to value: Windows Server 2008 R2, x64 Enterprise Edition
Service Pack 1

2013-07-05 08:50:05,209 DEBUG [pool-6-thread-1] Snmp4JStrategy: get:
OID: [.1.3.6.1.4.1.232.11.2.2.1.0] for Agent:AgentConfig[Address:
192.168.51.41, ProxyForAddress: null, Port: 161, Community: snmpstring$

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1] Snmp4JStrategy:
processResponse: SNMP operation successful, value: [Windows Server 2008
R2, Standard Edition, Service Pack 1]

2013-07-05 08:50:05,212 DEBUG [pool-6-thread-1]
SnmpAssetProvisioningAdapter: fetchSnmpAssetString: Fetched asset
properties from SNMP agent:

OperationSystem => Windows Server 2008 R2, x64 Standard Edition
Service Pack 1



How can I trigger a refresh of the snmp asset adapter. Now I restart
OpenNMS, change/delete some asset fields and the rescan and wait for 5
minutes.

An 'Asset Info' rescan button would be nice.



Kind regards,

Fred









Van: David S Hustace [via OpenNMS] [[hidden email]]
Verzonden: donderdag 4 juli 2013 20:56
Aan: Fred Ebben
Onderwerp: Re: snmp asset adapter
Does anybody have a working snmp-asset-adapter-configuration.xml
What does it mean to have a "working snmp-asset-adapter-configuration" ?



David



________________________________

View this message in context: RE: snmp asset adapter
<http://opennms.530661.n2.nabble.com/snmp-asset-adapter-tp7571447p758382
5.html>
Sent from the OpenNMS - discuss mailing list archive
<http://opennms.530661.n2.nabble.com/OpenNMS-discuss-f529575.html> at
Nabble.com.
David S Hustace
2013-07-16 15:21:40 UTC
Permalink
How can I trigger a refresh of the snmp asset adapter. Now I restart OpenNMS, change/delete some asset fields and the rescan and wait for 5 minutes.
An ‘Asset Info’ rescan button would be nice.
Hitting Rescan on the node causes all the provisioning adapters to run after the nodeUpdated event is generated by Provisiond.

D

Loading...