Page 1 of 2
Network Switch Configuration issue
Posted: Mon Nov 02, 2015 4:08 am
by raamardhani7
Hi Team,
When I am trying to run the command using SNMP, snmpwalk it is working fine and is giving proper results.
When I tried configuring the same from Network Switch / Router Monitoring Wizard. I am facing the below error:
Code: Select all
Bandwidth and Port Status
No ports were detected on the switch. Possible reasons for this include:
The switch is currently down
The switch does not exist at the address you specified
SNMP support on the switch is disabled
Troubleshooting Tip:
If you keep experiencing problems with the switch wizard scan, login to the Nagios XI server as the root user and execute the following command:
/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='fslsnmpusr' --authprotocol='sha' --authpassword='AuthPass' --privprotocol='des' --privpassword='PrivPass' --contextengineid=0 '172.31.0.10'
Code: Select all
Note:: Authpasswd and Priv passwd are having special characters and the same is escaped by adding them to resource.cfg file as user9 and user10.
I ran the same command from Nagios XI server and it is throwing the below error : could someone help me with this.
Code: Select all
/usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='fslsnmpusr' --authprotocol='sha' --authpassword='AuthPass' --privprotocol='des' --privpassword='PrivPass' --contextengineid=0 '172.31.0.10'
--base: SNMP V3 libraries found, SNMP V3 enabled.
--base: Get Device Info on [email protected]:::::3
SNMPWALK Problem for 1.3.6.1.2.1.1 on [email protected]:::::3:v4only: No response from remote host '172.31.0.10' at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 1851
Net_SNMP_util::snmpwalk_flg('[email protected]:::::3:v4only', undef, 'HASH(0x1bd8958)', 1.3.6.1.2.1.1) called at /usr/bin/../lib/mrtg2/Net_SNMP_util.pm line 786
Net_SNMP_util::snmpwalk('[email protected]:::::3:v4only', 'HASH(0x1bd8958)', 1.3.6.1.2.1.1) called at /usr/bin/cfgmaker line 951
main::DeviceInfo('[email protected]:::::3', 'HASH(0x1bd8a18)', 'HASH(0x1bd8958)') called at /usr/bin/cfgmaker line 142
main::main() called at /usr/bin/cfgmaker line 160
WARNING: Skipping [email protected]:::::3 as no info could be retrieved
Use of uninitialized value $comment_sysdescr in substitution (s///) at /usr/bin/cfgmaker line 379.
Use of uninitialized value $sysname in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $comment_sysdescr in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syscontact in concatenation (.) or string at /usr/bin/cfgmaker line 412.
Use of uninitialized value $syslocation in concatenation (.) or string at /usr/bin/cfgmaker line 412.
# Created by
# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed 100000000 --enablesnmpv3 --snmp-options=:::::3 --username=fslsnmpusr --authprotocol=sha "--authpassword=AuthPass" --privprotocol=des "--privpassword=PrivPass" --contextengineid=0 172.31.0.10
### Global Config Options
# for UNIX
# WorkDir: /home/http/mrtg
# or for NT
# WorkDir: c:\mrtgdata
### Global Defaults
# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits
EnableIPv6: no
######################################################################
# System:
# Description:
# Contact:
# Location:
######################################################################
enablesnmpv3: yes
Re: Network Switch Configuration issue
Posted: Mon Nov 02, 2015 1:45 pm
by tgriep
What version of the Network Switch / Router Monitoring Wizard are you running?
You can go to Admin > Manage Config Wizards to get the version.
Try upgrading it to the latest version and see if that works for you.
Re: Network Switch Configuration issue
Posted: Mon Nov 02, 2015 11:17 pm
by raamardhani7
tgriep wrote:What version of the Network Switch / Router Monitoring Wizard are you running?
You can go to Admin > Manage Config Wizards to get the version.
Try upgrading it to the latest version and see if that works for you.
Hi Tom,
If you remember you have updated the Network Switch / Router Monitoring Wizard to the latest version.
However I checked for the same and no updates are available for any wizard.
Re: Network Switch Configuration issue
Posted: Tue Nov 03, 2015 10:31 am
by tgriep
What type of device are you trying to monitor? Can you provide the make and model number?
Can you run the snmpwalk in a root shell on the XI system against the device and post the output of that here?
The command is shown below, adjust the parameters as needed.
Code: Select all
snmpwalk -v 3 -c public -u 'fslsnmpusr' -a SHA -A 'AuthPass' -x DES -X 'PrivPass' 172.31.0.10
Thanks.
Re: Network Switch Configuration issue
Posted: Wed Nov 04, 2015 2:38 am
by raamardhani7
tgriep wrote:What type of device are you trying to monitor? Can you provide the make and model number?
Can you run the snmpwalk in a root shell on the XI system against the device and post the output of that here?
The command is shown below, adjust the parameters as needed.
Code: Select all
snmpwalk -v 3 -c public -u 'fslsnmpusr' -a SHA -A 'AuthPass' -x DES -X 'PrivPass' 172.31.0.10
Thanks.
Hi Tom,
Please find the output of the command
Code: Select all
snmpwalk -v 3 -c public -u 'fslsnmpusr' -a SHA -A 'AuthPass' -x DES -X 'PrivPass' 172.31.0.10
Code: Select all
SNMPv2-MIB::sysDescr.0 = STRING: POSLab
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.12356.101.1.1403
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1507134813) 174 days, 10:29:08.13
SNMPv2-MIB::sysContact.0 = STRING: [email protected]
SNMPv2-MIB::sysName.0 = STRING: PoS_Lab
SNMPv2-MIB::sysLocation.0 = STRING: CS Lab
SNMPv2-MIB::sysServices.0 = INTEGER: 78
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORIndex.1 = INTEGER: 1
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::zeroDotZero.0
SNMPv2-MIB::sysORDescr.1 = STRING:
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifNumber.0 = INTEGER: 33
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifIndex.5 = INTEGER: 5
IF-MIB::ifIndex.6 = INTEGER: 6
IF-MIB::ifIndex.7 = INTEGER: 7
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifIndex.11 = INTEGER: 11
IF-MIB::ifIndex.12 = INTEGER: 12
IF-MIB::ifIndex.13 = INTEGER: 13
IF-MIB::ifIndex.14 = INTEGER: 14
IF-MIB::ifIndex.15 = INTEGER: 15
IF-MIB::ifIndex.16 = INTEGER: 16
IF-MIB::ifIndex.17 = INTEGER: 17
IF-MIB::ifIndex.18 = INTEGER: 18
IF-MIB::ifIndex.19 = INTEGER: 19
IF-MIB::ifIndex.20 = INTEGER: 20
IF-MIB::ifIndex.21 = INTEGER: 21
IF-MIB::ifIndex.23 = INTEGER: 23
IF-MIB::ifIndex.24 = INTEGER: 24
IF-MIB::ifIndex.25 = INTEGER: 25
IF-MIB::ifIndex.26 = INTEGER: 26
IF-MIB::ifIndex.27 = INTEGER: 27
IF-MIB::ifIndex.29 = INTEGER: 29
IF-MIB::ifIndex.30 = INTEGER: 30
IF-MIB::ifIndex.36 = INTEGER: 36
IF-MIB::ifIndex.37 = INTEGER: 37
IF-MIB::ifIndex.40 = INTEGER: 40
IF-MIB::ifIndex.41 = INTEGER: 41
IF-MIB::ifIndex.42 = INTEGER: 42
IF-MIB::ifDescr.1 = STRING: wan1
IF-MIB::ifDescr.2 = STRING: wan2
IF-MIB::ifDescr.3 = STRING: t1e1
IF-MIB::ifDescr.4 = STRING: modem
IF-MIB::ifDescr.5 = STRING: ssl.root
IF-MIB::ifDescr.6 = STRING: classic
IF-MIB::ifDescr.7 = STRING: mgmt
IF-MIB::ifDescr.8 = STRING: ha
IF-MIB::ifDescr.9 = STRING: dmz1
IF-MIB::ifDescr.10 = STRING: dmz2
IF-MIB::ifDescr.11 = STRING: port19
IF-MIB::ifDescr.12 = STRING: Switch_21
IF-MIB::ifDescr.13 = STRING: Switch_22
IF-MIB::ifDescr.14 = STRING: port10
IF-MIB::ifDescr.15 = STRING: Switch_41
IF-MIB::ifDescr.16 = STRING: port25
IF-MIB::ifDescr.17 = STRING: port12
IF-MIB::ifDescr.18 = STRING: Legacy
IF-MIB::ifDescr.19 = STRING: modern
IF-MIB::ifDescr.20 = STRING: Telus_MPLS
IF-MIB::ifDescr.21 = STRING: Switch_11
IF-MIB::ifDescr.23 = STRING: port17
IF-MIB::ifDescr.24 = STRING: port18
IF-MIB::ifDescr.25 = STRING: port11
IF-MIB::ifDescr.26 = STRING: VOIP
IF-MIB::ifDescr.27 = STRING: Switch_31
IF-MIB::ifDescr.29 = STRING: STRBCKUP
IF-MIB::ifDescr.30 = STRING: DM_Users
IF-MIB::ifDescr.36 = STRING: port24
IF-MIB::ifDescr.37 = STRING: port26
IF-MIB::ifDescr.40 = STRING: port29
IF-MIB::ifDescr.41 = STRING: port30
IF-MIB::ifDescr.42 = STRING: port31
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: other(1)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.5 = INTEGER: tunnel(131)
IF-MIB::ifType.6 = INTEGER: l2vlan(135)
IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.9 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.10 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.11 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.12 = INTEGER: bridge(209)
IF-MIB::ifType.13 = INTEGER: bridge(209)
IF-MIB::ifType.14 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.15 = INTEGER: bridge(209)
IF-MIB::ifType.16 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.17 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.18 = INTEGER: bridge(209)
IF-MIB::ifType.19 = INTEGER: l2vlan(135)
IF-MIB::ifType.20 = INTEGER: l2vlan(135)
IF-MIB::ifType.21 = INTEGER: bridge(209)
IF-MIB::ifType.23 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.24 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.25 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.26 = INTEGER: l2vlan(135)
IF-MIB::ifType.27 = INTEGER: bridge(209)
IF-MIB::ifType.29 = INTEGER: tunnel(131)
IF-MIB::ifType.30 = INTEGER: l2vlan(135)
IF-MIB::ifType.36 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.37 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.40 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.41 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.42 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifMtu.5 = INTEGER: 1500
IF-MIB::ifMtu.6 = INTEGER: 1500
IF-MIB::ifMtu.7 = INTEGER: 1500
IF-MIB::ifMtu.8 = INTEGER: 1500
IF-MIB::ifMtu.9 = INTEGER: 1500
IF-MIB::ifMtu.10 = INTEGER: 1500
IF-MIB::ifMtu.11 = INTEGER: 1500
IF-MIB::ifMtu.12 = INTEGER: 1500
IF-MIB::ifMtu.13 = INTEGER: 1500
IF-MIB::ifMtu.14 = INTEGER: 1500
IF-MIB::ifMtu.15 = INTEGER: 1500
IF-MIB::ifMtu.16 = INTEGER: 1500
IF-MIB::ifMtu.17 = INTEGER: 1500
IF-MIB::ifMtu.18 = INTEGER: 1500
IF-MIB::ifMtu.19 = INTEGER: 1500
IF-MIB::ifMtu.20 = INTEGER: 1500
IF-MIB::ifMtu.21 = INTEGER: 1500
IF-MIB::ifMtu.23 = INTEGER: 1500
IF-MIB::ifMtu.24 = INTEGER: 1500
IF-MIB::ifMtu.25 = INTEGER: 1500
IF-MIB::ifMtu.26 = INTEGER: 1500
IF-MIB::ifMtu.27 = INTEGER: 1500
IF-MIB::ifMtu.29 = INTEGER: 1500
IF-MIB::ifMtu.30 = INTEGER: 1500
IF-MIB::ifMtu.36 = INTEGER: 1500
IF-MIB::ifMtu.37 = INTEGER: 1500
IF-MIB::ifMtu.40 = INTEGER: 1500
IF-MIB::ifMtu.41 = INTEGER: 1500
IF-MIB::ifMtu.42 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 0
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifSpeed.5 = Gauge32: 0
IF-MIB::ifSpeed.6 = Gauge32: 0
IF-MIB::ifSpeed.7 = Gauge32: 10000000
IF-MIB::ifSpeed.8 = Gauge32: 10000000
IF-MIB::ifSpeed.9 = Gauge32: 1000000000
IF-MIB::ifSpeed.10 = Gauge32: 1000000000
IF-MIB::ifSpeed.11 = Gauge32: 1000000000
IF-MIB::ifSpeed.12 = Gauge32: 0
IF-MIB::ifSpeed.13 = Gauge32: 0
IF-MIB::ifSpeed.14 = Gauge32: 10000000
IF-MIB::ifSpeed.15 = Gauge32: 0
IF-MIB::ifSpeed.16 = Gauge32: 10000000
IF-MIB::ifSpeed.17 = Gauge32: 10000000
IF-MIB::ifSpeed.18 = Gauge32: 0
IF-MIB::ifSpeed.19 = Gauge32: 0
IF-MIB::ifSpeed.20 = Gauge32: 10000000
IF-MIB::ifSpeed.21 = Gauge32: 0
IF-MIB::ifSpeed.23 = Gauge32: 10000000
IF-MIB::ifSpeed.24 = Gauge32: 10000000
IF-MIB::ifSpeed.25 = Gauge32: 10000000
IF-MIB::ifSpeed.26 = Gauge32: 0
IF-MIB::ifSpeed.27 = Gauge32: 0
IF-MIB::ifSpeed.29 = Gauge32: 0
IF-MIB::ifSpeed.30 = Gauge32: 0
IF-MIB::ifSpeed.36 = Gauge32: 10000000
IF-MIB::ifSpeed.37 = Gauge32: 10000000
IF-MIB::ifSpeed.40 = Gauge32: 10000000
IF-MIB::ifSpeed.41 = Gauge32: 1000000000
IF-MIB::ifSpeed.42 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING: 8:5b:e:89:f4:42
IF-MIB::ifPhysAddress.2 = STRING: 8:5b:e:89:f4:43
IF-MIB::ifPhysAddress.3 = STRING:
IF-MIB::ifPhysAddress.4 = STRING: 0:0:0:0:0:0
IF-MIB::ifPhysAddress.5 = STRING:
IF-MIB::ifPhysAddress.6 = STRING: 8:5b:e:89:f4:59
IF-MIB::ifPhysAddress.7 = STRING: 8:5b:e:89:f4:44
IF-MIB::ifPhysAddress.8 = STRING: 8:5b:e:89:f4:45
IF-MIB::ifPhysAddress.9 = STRING: 8:5b:e:89:f4:6a
IF-MIB::ifPhysAddress.10 = STRING: 8:5b:e:89:f4:6b
IF-MIB::ifPhysAddress.11 = STRING: 8:5b:e:89:f4:58
IF-MIB::ifPhysAddress.12 = STRING:
IF-MIB::ifPhysAddress.13 = STRING:
IF-MIB::ifPhysAddress.14 = STRING: 8:5b:e:89:f4:4f
IF-MIB::ifPhysAddress.15 = STRING:
IF-MIB::ifPhysAddress.16 = STRING: 8:5b:e:89:f4:5e
IF-MIB::ifPhysAddress.17 = STRING: 8:5b:e:89:f4:51
IF-MIB::ifPhysAddress.18 = STRING:
IF-MIB::ifPhysAddress.19 = STRING: 8:5b:e:89:f4:59
IF-MIB::ifPhysAddress.20 = STRING: 8:5b:e:89:f4:4f
IF-MIB::ifPhysAddress.21 = STRING:
IF-MIB::ifPhysAddress.23 = STRING: 8:5b:e:89:f4:56
IF-MIB::ifPhysAddress.24 = STRING: 8:5b:e:89:f4:57
IF-MIB::ifPhysAddress.25 = STRING: 8:5b:e:89:f4:50
IF-MIB::ifPhysAddress.26 = STRING: 8:5b:e:89:f4:4a
IF-MIB::ifPhysAddress.27 = STRING:
IF-MIB::ifPhysAddress.29 = STRING:
IF-MIB::ifPhysAddress.30 = STRING: 8:5b:e:89:f4:59
IF-MIB::ifPhysAddress.36 = STRING: 8:5b:e:89:f4:5d
IF-MIB::ifPhysAddress.37 = STRING: 8:5b:e:89:f4:5f
IF-MIB::ifPhysAddress.40 = STRING: 8:5b:e:89:f4:62
IF-MIB::ifPhysAddress.41 = STRING: 8:5b:e:89:f4:63
IF-MIB::ifPhysAddress.42 = STRING: 8:5b:e:89:f4:64
IF-MIB::ifAdminStatus.1 = INTEGER: down(2)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
And lot to follow, do you want me to attach the entire output?
Re: Network Switch Configuration issue
Posted: Wed Nov 04, 2015 2:12 pm
by rkennedy
What is the make / model of this device?
Re: Network Switch Configuration issue
Posted: Thu Nov 05, 2015 12:12 am
by raamardhani7
rkennedy wrote:What is the make / model of this device?
Hi,
It's a fortinet device.
Re: Network Switch Configuration issue
Posted: Thu Nov 05, 2015 3:50 pm
by tgriep
Try typing in the username and password without escaping in the wizard and from the command line to see if either of them will work for you.
When running from the command line, make sure you use single quotes around the username or passwords that have special characters.
Re: Network Switch Configuration issue
Posted: Mon Nov 09, 2015 2:56 am
by raamardhani7
tgriep wrote:Try typing in the username and password without escaping in the wizard and from the command line to see if either of them will work for you.
When running from the command line, make sure you use single quotes around the username or passwords that have special characters.
Hi Tom,
I tried all possible ways and still I am facing the issue. I have tried by keying the password between '' and then removed '' and tried the same. Tried again by keying the password between '' by escaping the special characters and last removing '' and escaping the password. still no luck. And give the '$USER9$' and '$USER10$' and still no luck.
Re: Network Switch Configuration issue
Posted: Mon Nov 09, 2015 10:28 am
by hsmith
When you use single quotes, you don't need to escape anything.
This command worked, correct? snmpwalk -v 3 -c public -u 'fslsnmpusr' -a SHA -A 'AuthPass' -x DES -X 'PrivPass' 172.31.0.10