Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove almsnmpconf settings 1

Status
Not open for further replies.

marbear

Technical User
May 8, 2006
9
US
On an S8700 (R012x.01.1.414.1), I have used the web interface and the CLI 'almsnmpconf' command to setup snmp settings for some testing. Now that we are done testing, I have removed the SNMP settings in the web interface. How can I remove these parameters that are still setup under the 'almsnmpconf' command in the CLI?

Thanks!
 
Use the following:
almsnmpconf -d xxx.xxx.xxx.xxx -del

From the manual:
almsnmpconf [-d IP] [-c community] [-b [y|n]] [-e y|n] [-add|-del|-mod] | [-?]


-del Delete this trap destination. The -d flag with a valid/existing ip address is required.



 
I just tried that and it doesn't work. It gives the error "Error with input arguments". I even tried entering the entire command using the community values as well. Could it be the version we are at? I noticed that my commands are not the same as yours. The following is the available syntax usage on my system:

Usage: almsnmpconf [-d IP] [-c community] [-b [y|n]]
no argument: display current administration
-d: send traps to IP address (a.b.c.d)
-c: set trap community name to community
-b: enable alarm abbreviation for SNMP y|n; default: y
-?: show usage
 
You will probably need to enter the entire string including the community calues and such.
 
Since we are unable to remove this command, now we are also unable to receive a response to the "TESTINADS" command. Does anybody else have any ideas?

Thanks!
 
post what you get for "almsnmpconf" command, your output when you try to delete. May be able to provide some alternative suggestions.
 
Here are two different responses:

pbx1>almsnmpconf -d XX.XX.XX.XX -c public -b n del
almsnmpconf: 1 : Error with input arguments.

Usage: almsnmpconf [-d IP] [-c community] [-b [y|n]]
no argument: display current administration
-d: send traps to IP address (a.b.c.d)
-c: set trap community name to community
-b: enable alarm abbreviation for SNMP y|n; default: y
-?: show usage

**********************************************************
pbx1> almsnmpconf -d XX.XX.XX.XX del
almsnmpconf: 1 : Error with input arguments.

Usage: almsnmpconf [-d IP] [-c community] [-b [y|n]]
no argument: display current administration
-d: send traps to IP address (a.b.c.d)
-c: set trap community name to community
-b: enable alarm abbreviation for SNMP y|n; default: y
-?: show usage

pbx1>
**********************************************************
(I have removed our IP address and replaced it with X's.)

Thanks!
 
Try this one. Same one Simreal suggested. If that doesn't work post what you get. Replace ip address with your ip address.

almsnmpconf -d 192.168.1.1 -del

Usage: almsnmpconf [-d IP] [-c community] [-b [y|n]] [-e y|n] [-add|-del|-mod]
no argument: display current administration
-d: send traps to IP address (a.b.c.d)
-c: set trap community name to community
-b: enable alarm abbreviation for SNMP y|n; default: y
-e: enable trap destination y|n
-add: add new trap destination
-del: remove trap destination
-mod: modify trap destination
-?: show usage
 
Here it is:

pbx1> almsnmpconf -d XX.XX.XX.XX -del
almsnmpconf: 1 : Error with input arguments.

Usage: almsnmpconf [-d IP] [-c community] [-b [y|n]]
no argument: display current administration
-d: send traps to IP address (a.b.c.d)
-c: set trap community name to community
-b: enable alarm abbreviation for SNMP y|n; default: y
-?: show usage
 
Very odd. Try and edit file /etc/opt/ecs/alarm_snmp.conf or /root2/etc/opt/ecs/alarm_snmp.conf if you have a S8300/8500 server with RAMDISK running. Remove all lines below the last hash #

server> vi /etc/opt/ecs/alarm_snmp.conf
# Configuration file to send alarms as SNMP notifications to administered
# IP addresses. The notifications use the traps defined in the INADS MIB.
#
# Tabs are to be used as the field delimiter.
#
# If a line STARTS with a '#' (i.e., the first character), it is treated
# as a comment, though comments are NOT maintained across automatic
# generations of this config file.
#
# Formats for the lines are shown below by version and options. In all
# cases, the IP address must be entered in dotted decimal notation: a.b.c.d
#
# The format for SNMPv2 traps is:
# enabled|disabled IP-address trap v2c community-name
#
# The format for SNMPv2 informs is:
# enabled|disabled IP-address inform v2c community-name
# <=== remove your snmp settings below this.

Then check your almsnmpconf file again. Hope this works for you.
 
Thanks PHQNEMAN! This worked like a charm. Yahoo!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top