2004 in a cluster?
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
2004 in a cluster?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server
Author Message
Neil Pike
Guest





Posted: Fri Dec 03, 2004 4:18 am    Post subject: Re: 2004 in a cluster? Reply with quote

Mark,

You have to manually insert the /DELETE commands into the script if you want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint, hint.
;-)

Quote:
Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was still
some stuff in there, so when I tried the input, I got the error that the
items already existed.
Neil Pike. Protech Computing Ltd
Back to top
Mark Houseberg
Guest





Posted: Fri Dec 03, 2004 4:59 am    Post subject: Re: 2004 in a cluster? Reply with quote

Can you use snacfg for creating link services? I tried and now everytime I
open SNA Manager it shows up for a second then says SNADLC3 Deleted.

Mark

"Neil Pike" wrote:

Quote:
Mark,

You have to manually insert the /DELETE commands into the script if you want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint, hint.
;-)

Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was still
some stuff in there, so when I tried the input, I got the error that the
items already existed.
Neil Pike. Protech Computing Ltd



Back to top
Neil Pike
Guest





Posted: Fri Dec 03, 2004 4:38 pm    Post subject: Re: 2004 in a cluster? Reply with quote

Mark,

No, you use linkcfg for that. See Kb article 268844

Quote:
Can you use snacfg for creating link services? I tried and now everytime I
open SNA Manager it shows up for a second then says SNADLC3 Deleted.

Neil Pike. Protech Computing Ltd
Back to top
Charles Ezzell (MSFT)
Guest





Posted: Fri Dec 03, 2004 7:08 pm    Post subject: Re: 2004 in a cluster? Reply with quote

Yup, linkcfg is the only way. snacfg does not write to the registry, only
the com.cfg file. Linkcfg writes to the registry and actually installs the
link service, but does not add the link to the com.cfg file. So you have to
use a combination of the 2 to install the link service, install the link,
then create the PU. See below for an example you could use in a batch file
(it's for SDLC, so would need modifying for a SNADLC link). Luckily both
linkcfg and snacfg do return an errorlevel if they fail. These are
documented in the online docs.

*** Begin snip ***
REM add link service
echo Adding link service
set errorcmd="Add Link Service"
Linkcfg linksvc "" /SERVER:CHARLIEE /LSTYPE:"SyncLink SDLC Link Service"
/LineType:swmsn /MaxBTUSize:4094 /Constantrts:No /devicename:MGHDLC1
if errorlevel 1 goto ERROR

REM add link to com.cfg
echo Adding link service to com.cfg
set errorcmd="Add link to com.cfg"
Snacfg LINK CHARLIEE:SLSDLC1 /ADD /LINKTYPE:SDLC /LINETYPE:Softdial
/Carrier:off
if errorlevel 1 goto ERROR

REM add connection, assign to link
echo Adding connection
set errorcmd="Add connection"
Snacfg Connection SDLCCONN /ADD /SERVER:CHARLIEE /CONNTYPE:SDLC
/LinkService:SLSDLC1 /POLLADDRESS:C1 /SDLCMAXBTU:2155 /ENCODING:NRZ
/Activation:OnServerStartup /CALLDIRECTION:Incoming /LOCALBLOCKNO:05D
/LOCALNODENO:FFFF1 /XIDTYPE:Format0
if errorlevel 1 goto ERROR

:ERROR
echo ********************************************
echo Aborting!!!
echo Error %errorlevel% occurred.
echo %errorcmd%
echo ********************************************
pause

:DONE
echo Done
*** End snip ***

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627e.138e9b73@compuserve.com...
Quote:
Mark,

No, you use linkcfg for that. See Kb article 268844

Can you use snacfg for creating link services? I tried and now everytime
I
open SNA Manager it shows up for a second then says SNADLC3 Deleted.

Neil Pike. Protech Computing Ltd


Back to top
Charles Ezzell (MSFT)
Guest





Posted: Fri Dec 03, 2004 7:32 pm    Post subject: Re: 2004 in a cluster? Reply with quote

The push is use WMI more and more:

This would delete an LU called "Test" on the local box. Save as a VBS file.

*** Begin Snip ***
strComputer = "."
Set pWMIServices = GetObject("winmgmts:\\" & strComputer &
"\root\MicrosoftHIS")
set pWMIObject = pWMIServices.Get("MsSna_LuLua.Name='Test'")
pWMIObject.Security_.ImpersonationLevel = wbemImpersonationLevelImpersonate
pWMIObject.Delete_ wbemFlagReturnWhenComplete
*** End Snip ***

Whereas, using snacfg:
snacfg lu Test /delete

Much easier <vbg>

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627d.10e8de0e@compuserve.com...
Quote:
Mark,

You have to manually insert the /DELETE commands into the script if you
want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint,
hint.
;-)

Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was still
some stuff in there, so when I tried the input, I got the error that the
items already existed.
Neil Pike. Protech Computing Ltd


Back to top
Mark Houseberg
Guest





Posted: Fri Dec 03, 2004 8:15 pm    Post subject: Re: 2004 in a cluster? Reply with quote

You guys really are amazing Thank You again!

"Charles Ezzell (MSFT)" wrote:

Quote:
Yup, linkcfg is the only way. snacfg does not write to the registry, only
the com.cfg file. Linkcfg writes to the registry and actually installs the
link service, but does not add the link to the com.cfg file. So you have to
use a combination of the 2 to install the link service, install the link,
then create the PU. See below for an example you could use in a batch file
(it's for SDLC, so would need modifying for a SNADLC link). Luckily both
linkcfg and snacfg do return an errorlevel if they fail. These are
documented in the online docs.

*** Begin snip ***
REM add link service
echo Adding link service
set errorcmd="Add Link Service"
Linkcfg linksvc "" /SERVER:CHARLIEE /LSTYPE:"SyncLink SDLC Link Service"
/LineType:swmsn /MaxBTUSize:4094 /Constantrts:No /devicename:MGHDLC1
if errorlevel 1 goto ERROR

REM add link to com.cfg
echo Adding link service to com.cfg
set errorcmd="Add link to com.cfg"
Snacfg LINK CHARLIEE:SLSDLC1 /ADD /LINKTYPE:SDLC /LINETYPE:Softdial
/Carrier:off
if errorlevel 1 goto ERROR

REM add connection, assign to link
echo Adding connection
set errorcmd="Add connection"
Snacfg Connection SDLCCONN /ADD /SERVER:CHARLIEE /CONNTYPE:SDLC
/LinkService:SLSDLC1 /POLLADDRESS:C1 /SDLCMAXBTU:2155 /ENCODING:NRZ
/Activation:OnServerStartup /CALLDIRECTION:Incoming /LOCALBLOCKNO:05D
/LOCALNODENO:FFFF1 /XIDTYPE:Format0
if errorlevel 1 goto ERROR

:ERROR
echo ********************************************
echo Aborting!!!
echo Error %errorlevel% occurred.
echo %errorcmd%
echo ********************************************
pause

:DONE
echo Done
*** End snip ***

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627e.138e9b73@compuserve.com...
Mark,

No, you use linkcfg for that. See Kb article 268844

Can you use snacfg for creating link services? I tried and now everytime
I
open SNA Manager it shows up for a second then says SNADLC3 Deleted.

Neil Pike. Protech Computing Ltd





Back to top
Neil Pike
Guest





Posted: Sat Dec 04, 2004 2:42 pm    Post subject: Re: 2004 in a cluster? Reply with quote

Charles,

I probably didn't make it clear. I was hinting at the need for SNACFG to have
an option to create /DELETE statements (ahead of the /ADD) when scripting a
com.cfg file.

That makes it easier to cut and paste sections out for adding to other boxes.

Totall agree about WMI - great in theory, not so easy in practice.. Will
Scriptomatic 2.0 have stuff in to help automate HIS WMI code?

Quote:
The push is use WMI more and more:

This would delete an LU called "Test" on the local box. Save as a VBS file.

*** Begin Snip ***
strComputer = "."
Set pWMIServices = GetObject("winmgmts:\\" & strComputer &
"\root\MicrosoftHIS")
set pWMIObject = pWMIServices.Get("MsSna_LuLua.Name='Test'")
pWMIObject.Security_.ImpersonationLevel = wbemImpersonationLevelImpersonate
pWMIObject.Delete_ wbemFlagReturnWhenComplete
*** End Snip ***

Whereas, using snacfg:
snacfg lu Test /delete

Much easier <vbg

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627d.10e8de0e@compuserve.com...
Mark,

You have to manually insert the /DELETE commands into the script if you
want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint,
hint.
;-)

Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was still
some stuff in there, so when I tried the input, I got the error that the
items already existed.
Neil Pike. Protech Computing Ltd





Neil Pike. Protech Computing Ltd
Back to top
Mark Houseberg
Guest





Posted: Tue Dec 14, 2004 9:47 pm    Post subject: Re: 2004 in a cluster? Reply with quote

Charles and Neil,

I just want to thank you again for all the help; the migration/
consolidation went really smooth, with the exception of a couple very, very
old printers not working with the converted PDT's. We just used the old ones
and everything works fine.

Thanks,
Mark

"Charles Ezzell (MSFT)" wrote:

Quote:
The push is use WMI more and more:

This would delete an LU called "Test" on the local box. Save as a VBS file.

*** Begin Snip ***
strComputer = "."
Set pWMIServices = GetObject("winmgmts:\\" & strComputer &
"\root\MicrosoftHIS")
set pWMIObject = pWMIServices.Get("MsSna_LuLua.Name='Test'")
pWMIObject.Security_.ImpersonationLevel = wbemImpersonationLevelImpersonate
pWMIObject.Delete_ wbemFlagReturnWhenComplete
*** End Snip ***

Whereas, using snacfg:
snacfg lu Test /delete

Much easier <vbg

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627d.10e8de0e@compuserve.com...
Mark,

You have to manually insert the /DELETE commands into the script if you
want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint,
hint.
;-)

Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was still
some stuff in there, so when I tried the input, I got the error that the
items already existed.
Neil Pike. Protech Computing Ltd





Back to top
Charles Ezzell (MSFT)
Guest





Posted: Wed Dec 15, 2004 12:50 am    Post subject: Re: 2004 in a cluster? Reply with quote

Mark,

That is good to hear. I love success stories <g>

Charles

"Mark Houseberg" <MarkHouseberg@discussions.microsoft.com> wrote in message
news:A3E736A6-204F-42B6-8CD6-045EB9573518@microsoft.com...
Quote:
Charles and Neil,

I just want to thank you again for all the help; the migration/
consolidation went really smooth, with the exception of a couple very,
very
old printers not working with the converted PDT's. We just used the old
ones
and everything works fine.

Thanks,
Mark

"Charles Ezzell (MSFT)" wrote:

The push is use WMI more and more:

This would delete an LU called "Test" on the local box. Save as a VBS
file.

*** Begin Snip ***
strComputer = "."
Set pWMIServices = GetObject("winmgmts:\\" & strComputer &
"\root\MicrosoftHIS")
set pWMIObject = pWMIServices.Get("MsSna_LuLua.Name='Test'")
pWMIObject.Security_.ImpersonationLevel =
wbemImpersonationLevelImpersonate
pWMIObject.Delete_ wbemFlagReturnWhenComplete
*** End Snip ***

Whereas, using snacfg:
snacfg lu Test /delete

Much easier <vbg

"Neil Pike" <neilpike@compuserve.com> wrote in message
news:VA.0000627d.10e8de0e@compuserve.com...
Mark,

You have to manually insert the /DELETE commands into the script if you
want
them for re-runnability.

Charles - that would be a good enhancement switch for SNACFG.EXE, hint,
hint.
;-)

Thanks guys; I will give that a shot.
I think my problem was that I tried this a few times and there was
still
some stuff in there, so when I tried the input, I got the error that
the
items already existed.
Neil Pike. Protech Computing Ltd





Back to top
Neil Pike
Guest





Posted: Wed Dec 15, 2004 1:36 am    Post subject: Re: 2004 in a cluster? Reply with quote

Mark - glad to hear it all went well!

I'm going to be doing a HIS 2004 upgrade early in the new year myself (with
printing)!

Quote:
Charles and Neil,

I just want to thank you again for all the help; the migration/
consolidation went really smooth, with the exception of a couple very, very
old printers not working with the converted PDT's. We just used the old ones
and everything works fine.

Thanks,
Mark

Neil Pike. Protech Computing Ltd
Back to top
Mark Houseberg
Guest





Posted: Wed Dec 15, 2004 4:29 am    Post subject: Re: 2004 in a cluster? Reply with quote

I am sure you won't need my help, but if you do; don't hesitate to ask!
mark@houseberg.com

"Neil Pike" wrote:

Quote:
Mark - glad to hear it all went well!

I'm going to be doing a HIS 2004 upgrade early in the new year myself (with
printing)!

Charles and Neil,

I just want to thank you again for all the help; the migration/
consolidation went really smooth, with the exception of a couple very, very
old printers not working with the converted PDT's. We just used the old ones
and everything works fine.

Thanks,
Mark

Neil Pike. Protech Computing Ltd



Back to top
Neil Pike
Guest





Posted: Wed Dec 15, 2004 12:00 pm    Post subject: Re: 2004 in a cluster? Reply with quote

I'll just need your home phone number in case I get stuck at 4 a.m. ;-)

Quote:
I am sure you won't need my help, but if you do; don't hesitate to ask!
mark@houseberg.com

Neil Pike. Protech Computing Ltd
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Host Integration Server All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB