Showing posts with label work. Show all posts
Showing posts with label work. Show all posts

Monday, September 21, 2009

tivoli command line other nodes

So we use tivoli and we want to get backup information from the node foo to the node we are on, baz in this case. First we need to pre-authorize. On foo we do a:
dsmc set access backup '/var/log/messages' baz
or
dsmc set access backup '/var/log/*' baz

Then on baz you can access foo's backup information for filespecs you've been authorized for.
dsmc q backup -fromnode=FOO -inactive '/var/log/messages'
or
dsmc q backup -fromnode=FOO -inactive '/var/log/*'

Tuesday, September 9, 2008

tivoli command line check file backup versions

dsmc q backup -inactive ""

dsmc q backup -inactive "/var/log/messages"

You can also use the '*' wildcard character.

dsmc q backup -inactive "/var/log/*"

Wednesday, September 3, 2008

show me rpm installs sorted by install time

rpm -qa --qf '%{installtime} %{NAME}-%{VERSION}-%{RELEASE} %{installtime:date}\n' | sort -n

Tuesday, August 12, 2008

work related

I'm posting this on my public blog in case it proves useful to someone. I was trying to compile a .so on a RedHat5 Linux system with an atexit call in it using the linker ld directly. When I tried to compile an executable and link the library in I got the following error message:

hidden symbol `atexit' in /usr/lib64/libc_nonshared.a(atexit.oS) is referenced by DSO

I found a few pages out there which suggested creating the .so by using gcc instead of ld which does work but I wanted to use ld. To use ld I had to link in libc_nonshared.a by using the -lc_nonshared flag.