Has anyone figured out how to remove a single line from a config file without removing the rest of the config below the line you are trying to remove. The trim commands don't seem to offer the ability to do this? If someone has a way please share with us.
Thanks for your help in advance
Mello
Comments
This was sent to me through support.... just so everyone can see.
Hi Brian,
The line you want to use is 'trim-start' and 'trim-end'. This should cut out the line from your configuration. Here's a link to the help section if you need it.
Trimming WhatsConfigured command output
http://docs.ipswitch.com/NM/87_WhatsUp%20Gold%20v14.1/03_Help/26608.htm
Thanks,
-Rich
However most of this I already knew... and it still doesn't solve my problem. Let me better explain. If you have a config file that looks like below
1
!
2
!
3
!
4
!
5
Now I simply want to remove line number 4 from the config and keep everything above and below the line. There doesn't appear to be a way using the trim commands to make this happen, I either trim everything before or after which is NOT my goal here. If someone sees something I missed please update this post.
Thanks
Mello
Mello,
Just wanted to let you know that this feature has been added to the next release of WhatsConfigured (v2.0).
The script language will support a: "remove-lines" command
For example: [startup-config, remove-lines=/systemtime.+/] show startup-config
Let us know if you have any additional thoughts.
-Brian
Brian Kap,
First off, would someone at Whatsup please find a web site developer that knows how to code a 2010 web site application? Holy cow I've never been to a more confusing and frustrating web site in all my career. I feel like I've just gave birth to a web site built by a 3 year old!!! I am pretty sure in the last twenty minutes I've spent 19 minutes just trying to get logged into the website either to find a download or to log to this post... neither of which can you do with the same log on... what a freaking nightmare! If you need an example on what a web site should look like and function like go look at Cisco or HP or DELL. Here's how most of them work list your products and then have a section for tech support that includes a log on and download area both of which you get to with one log on not fifty.
Secondly, when is WhatsConfigured v2 coming out or going to be ready for download. I believe my original post was back in Dec and you answered in Jan so I am hoping this month for a release? Also is there a script guide for WhatsConfigured, the examples and the help file that I have with 14.1.2 is a bit lacking and never really fully explains how to write using the interface?
Brian
Brian
Hey Brian,
WhatsConfigured v2 will scheduled to ship with WhatsUp Gold v14.2 on March 23rd. Also, thank you for the feedback regarding the user community.
Jason
Jason,
Thanks for the info that will be a big help... I notice on the script space you've posted some interesting scripts for whatsconfigured... Is there a way to have whatsconfigured login into a switch and copy using tftp the vlan.dat file over to the whatsconfigured database? I noticed your show vlan script which is great but I really want a copy of the vlan.dat file for my core switches to be backed up.
Brian