Software :: Rancid - Pull Config Different From HP Procurve Switches
Jan 3, 2011
Posting this one in Software rather than Networking as it appears to be a Rancid/CVS/Diff issue rather than anything relating directly to Networking. Trying to pull config diffs from HP Procurve switches. Latest versions of Tcl, Expect, diff stat, and 2.3.5 Rancid. Getting random characters changes and white space changes seen as diffs. Things like ";password manager <removed>" in one config showing up in the next chrons run as "c5# ord manager". This generates a new email every time.
Since we have these going directly into our ticketing system for change control, these pile up over time and need to be parsed out from actual config changes. I've tried various diff switches in the control_rancid. Current command string in the control_rancid file is "cvs -f diff -TwbB -U 4 -ko | sed -e '/^RCS file: /d' -e/^--- /d' -e '/^+++/d' -e 's/^([-+])/1 /' >$TMP.dff" I've also tried looking in the hrancid, hlogin, and htlogin files for more hints that might be scrambling my diffs, but no luck. Here's a sample of what shows up in the ticket queue.
I'm new to Linux which just installed a new virtual CentOS server to try RANCID to pull router configuration and I succeed to pull out the configurations as I wish, but I failed to receive a notification email from the server.After a few tries, I realize that I need to configure sendmail to work with RANCID to send an email! And I also tried to configure sendmail files, but failed..I totally blank and don't how to configure sendmail, anyone here can guide me? What is the must to configure to make sendmail to work with RANCID? Do I need to configure my server as mail server?1. A server that I configured a sendmail is called mail server?2. What is my mail server's name and domain name? . lnx-svr01.site.net, lnx-svr01 is my mail server name and site.net is my domain name
I'm running Ubuntu Server 11.04 with OpenSSH, trying to create an ssh tunnel (for web traffic) to it from my (also Ubuntu) laptop. This is the command I'm using to create the tunnel:
Code: ssh -ND localhost:8080 george@192.168.1.20 I had it all working on a virtual machine.. which was deleted What settings/lines do I need to change/add from the default OpenSSH config files to get tunnelling to work? I've Googled and AllowTcpForwarding is set to yes, as is X11Forwarding.. but it still doesn't work. Chrome can connect to the server, but says the connection was closed before any data was sent.
I am running a server with a GRSecurity patched Kernel 2.6.32.36. I've tried to optimize the kernel as much as I can and know it (removing options, not needed drivers and so on) and compiled the modules into the kernel (no loadable modules anymore). I've started with Slackware 13.0 and the default config for 2.6.29.6-huge. Still I am not sure what to remove/optimize further now.
My question: Is there a way to boot with a kernel with loadable modules, check which modules are really needed for this hardware, (do something like lsmod) and save the running configuration modules for a next kernel compile to be the default .config instead of writing them down by hand and search for the appropriate names in .config or during menuconfig? (Note: zcat /proc/config.gz > .config is NOT the way I want, as it gives me just the current kernel config)
This is (I'm sure) a silly question, but when reading the guide for custom kernel [url] it mentions I need to use yumdownloader to pull the source as an RPM.
How exactly do I find mirrors etc for this (and where do I configure it)?
I've already got the source locally along with the patches I want to use, and want to try this the 'fedora' way. I'd normally just use make/make modules etc, but I've never tried it via RPM.
I know of terminating a command with & and then moving it into the background by pressing Ctrl-Z and then bg [pid], and I also know of nohup. But say you started a process that turned out to take much longer than one expected, is there a way of pulling, so to speak, this process from another terminal screen into the background so that even if I log off from the server the process would continue?
I have a pretty good understanding of what is in the package mgt rep and how to pull software out and install. BTW this is the greatest software install tool ever created.But really my question is about software for UBUNTU that is not in the rep. Has anyone compiled a list and/or reviews of the software that is out there. I'm looking for companies that actively writing software for Linux and in particular UBUNTU and what kind of products they have.
I am trying to find a way to pull Node Pointers out of the model, for use in other areas of the program. The solution is probably simple but I haven't had any luck finding it.
Model for a QTreeView:
Code:
class testModel : public QAbstractItemModel { public: testModel(); ~testModel();
I have a script in Linux that generates a report on my Linux machine. I would like to know if there is anyway I can write a script to pull this report automatically from my Linux machine into my windows machine. Both Linux and Windows machines are on the same network
I have to pull certificate from multiple computers which are on network and store it in a single fie or each file belong to a particular computer.I am using certutil -store to import the certificate.
I have a gziped dd image backup of my entire hda drive (osx and ext4 partitions) that I created with the following command: dd if=/dev/sda |gzip > image032810.gz Can I mount this image file to pull off individual files from individual partitions?
I have 2 files to compare and then print out information that match a certain pattern. I know basic scripting and was heading down the path of merging the 2 files together but this is the wrong approach. Would really appreciate a script that can do what is required:
file 1 contains dates, times and ID's: 2010-10-28 10:42 5939697357 2010-10-28 11:56 5919543491
I have a file (.tmpfile) and inside it is a string which i only know part of, the rest being a random group of characters... I would like to know how to pull the whole string out of the file and into a variable.
I am trying to figure out a way to pull http links out of text files and then output the results in a log. The text files are in folders like this inside a source directory.
I would like to know if it is possible to push or pull all Windows printers (about 1000) to Redhat Advanced Server? I know normally Samba comes into play, but there i can only make connection to 1 printer at the time. Also, I must then add the printers from the Windows Print Cluster by hand. Considering the huge amount of work AND the manageable aspects ( you will then have the printers on two servers), this is not an option.
So, can I connect from the RedHat server directly to the Windows Print cluster, or, if not, at least load all printers in the CUPS configuration at once? Then I have at least connection. It's a Windows 2003 R2 print cluster with RedHat 5.3 Advanced Server. Eventually the RedHat environment will be a cluster.
I'm running ubuntu 10.04 on a new pc I just bought. Every so often the monitor will just shut down and display a message: "no signal input". I'm sure the computer is still running though because the fan is still running and all lights etc. are still on. I've tried switching the monitor on and off and there is still no input signal, the only solution is to reboot the entire computer.
I have a pull-down corner on both of my gnome-panels. If I hover my mouse over it, i even get the resize cursor, but you can't actually resize the panel. I'm also seeing them on my screenlets. See the shot below:
The pull-down corners are in the red boxes. It's very clear in the top box on the gnome-panel; it's a little harder to see in the bottom one on the weather screenlet, but it's there. I have a bottom gnome-panel, too, and it's on that one, as well. I just recently noticed them, but I'm not sure where they came from. Does anyone know how to get rid of them? It's not really causing any problems. It just bothers me because I'm a bit of a perfectionist. I've tried searching the web and the forums for a solution but I'm having a hard time finding anything because I don't know the official name for that design element.
I have a workstation with Fedora 13. This workstation is used for very long remote processes. Recently it has been shutdown accidentally by a user and has caused the loss of some of these processes. As such, for precautionary reasons, I have decided to remove these options from all our workstations so that only the super user can initiate reboots or shutdowns.
In previous versions I was able to do this by using gdmsetup and unchecking the Show Action Menu option. This also added the SystemMenu=false flag under [greeter] in the /etc/gdm/custom.conf file. This was under RedHat EL5. However in Fedora 13 neither of these methods work. Gdmsetup no longer exists and adding that flag to the custom.conf file does not work. I rebooted after editting the file and the shutdown option still appears at login.
Often, and esp after adding something with apt-get or Synaptics I find Firefox will lose the ability to display either pull down menus or a menu from a mouse's right button.
I've been doing some initial searches for a bug report on Launchpad (but it is unclear if it is being used to actively track bugs vs some other place).
My 'hit it with a hammer' approach to a fix, at least to this point, is to reinstall from the local store or cache, the application;
Synaptic Status Filter Firefox (in the Quick Search field) Mark the existing Firefox for Reinstallation
No files get downloaded, but a restart of Firefox and 'tada'; menus return.
I've been running an overnight cron job for months on my servers which tells me what apt-get dist-upgrade wants to do.
This morning I was faced with it wanting to install 115 new packages including many (if not all - I can't face checking, e.g. firefox) which are entirely pointless on a server with no gui.
apt-get upgrade wants to do the sensible (in my mind) thing.
To save anyone asking, I've been using dist-upgrade because upgrade wouldn't report on pending kernel upgrades and, until I spotted that, I was due kernel upgrades for quite a while before I realised.
I presume this is caused by an over-enthusiastic depends or recommends somewhere but does anyone actually know?
Off to work now but I'll look further this evening so any pointers before then gratefully received.
All ok again now, the bug with language pack dependencies has been fixed - [URL]